package com.hc.dfs.handle;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.hc.dfs.activity.R;
import com.hc.dfs.entities.flow.UnsignedNode;

/** 
 * @author 王洪胜  E-mail:  
 * @version 创建时间：2013-3-4 下午2:56:33
 * 
 * 类说明：呈批单基本信息
 *
 */
public class DetailChengPiDan extends DetailPage {
//	private Activity activity;
	private UnsignedNode data;
	private View view;
	
	private TextView type;
	private TextView huanji;
	private TextView miji;
	private TextView ren;
	private TextView danwei;
	private TextView shijian;
	private TextView biaoti;
	private TextView bianhao;

	public DetailChengPiDan(Context context, int typeId, int docType){
		super(context, typeId, docType);
	}

	//设置公文基本信息
	@Override
	public void setBaseInfo(){
		type = (TextView) activity.findViewById(R.id.type);
		biaoti = (TextView) activity.findViewById(R.id.biaoti);
		bianhao = (TextView) activity.findViewById(R.id.bianhao2);
		huanji = (TextView) activity.findViewById(R.id.huanji2);
		miji = (TextView) activity.findViewById(R.id.miji2);
		ren = (TextView) activity.findViewById(R.id.ren2);
		danwei = (TextView) activity.findViewById(R.id.danwei2);
		shijian = (TextView) activity.findViewById(R.id.shijian2);
		
//		type.setText(data.getDocument().getDocTypeId());
//		biaoti.setText(data.getDocument().getTitle());
//		bianhao.setText(data.getDocument().getSerialNum());
//		huanji.setText(data.getDocument().getPriorityLevel());
//		miji.setText(data.getDocument().getConfidenceLevel());
//		ren.setText(data.getDocument().getReporterName());
//		danwei.setText(data.getDocument().getReporterDeptName());
//		// 公文日期
//		Date date = data.getDocument().getSaveTime();
//		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//		String d = df.format(date);
//		shijian.setText(d);
	}

	@Override
	public void setData() {
		// TODO Auto-generated method stub
		
	}

}
